var common = {
	localurl:'http://nbnet.chinaecdc.com',
	add0:function(m){
		return m<10?'0'+m:m 
	},
	format:function(shijianchuo){
		//shijianchuo是整数，否则要parseInt转换
		var time = new Date(shijianchuo);
		var y = time.getFullYear();
		var m = time.getMonth()+1;
		var d = time.getDate();
		return y+'-'+common.add0(m)+'-'+common.add0(d);
	}
}
export {
	common
}